<div style="width: 100%;height: 100%;overflow-y: auto" id="MibManage" ng-controller="MibManageCtrl">
    <div id="query" class="col-sm-12">
        <button data-toggle="modal" data-target="#myModal">导入</button>
    </div>
    <div id="data" class="col-sm-12">
        <table class="table table-striped table-hover">
            <tr>
                <th style="width: 1em"><input type="checkbox"></th>
                <th>模块名</th>
                <th>操作</th>
            </tr>
            <tr ng-repeat="module in moduleList">
                <td><input type="checkbox"></td>
                <td>{{module.moduleName}}</td>
                <td><button ng-click="deleteModule(module)" >删除</button></td>
            </tr>
        </table>
    </div>


    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        上传mib文件
                    </h4>
                </div>
                <div class="modal-body">
                    <form method="post" enctype="multipart/form-data" action="/mib/uploadMibFile">
                        <div>
                            <input type="file"  name="mibFile" id="mibFile"/>
                        </div>
                        <input type="submit" value="确定" class="btn btn-primary" data-dismiss="modal" ng-click="uploadMibFile()">
                    </form>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</div>

